package org.seefly.iprint.mapper;

import org.apache.ibatis.annotations.Param;
import org.seefly.iprint.entity.Helpinfo;
import org.seefly.iprint.entity.HelpinfoExample;

import java.util.List;

public interface HelpinfoMapper {
    int countByExample(HelpinfoExample example);

    int deleteByExample(HelpinfoExample example);

    int deleteByPrimaryKey(Integer id);

    int insert(Helpinfo record);

    int insertSelective(Helpinfo record);

    List<Helpinfo> selectByExampleWithBLOBs(HelpinfoExample example);

    List<Helpinfo> selectByExample(HelpinfoExample example);

    Helpinfo selectByPrimaryKey(Integer id);

    int updateByExampleSelective(@Param("record") Helpinfo record, @Param("example") HelpinfoExample example);

    int updateByExampleWithBLOBs(@Param("record") Helpinfo record, @Param("example") HelpinfoExample example);

    int updateByExample(@Param("record") Helpinfo record, @Param("example") HelpinfoExample example);

    int updateByPrimaryKeySelective(Helpinfo record);

    int updateByPrimaryKeyWithBLOBs(Helpinfo record);

    int updateByPrimaryKey(Helpinfo record);

    void insert4Key(Helpinfo info);

    /**
     * 
     * @Description (分页查询信息)
     * @param start
     * @param pageSize
     * @param queryType
     * @return
     */
    List<Helpinfo> getListByPage(@Param("start") int start, @Param("pageSize") Integer pageSize, @Param("queryType") String queryType, @Param("key") String key);
    /**
     * 
     * @Description (获取指定分类的所有数量)
     * @param queryType
     * @return
     */
    int getListCount(@Param("queryType") String queryType, @Param("mkey") String mkey);

    List<Helpinfo> findNewAdsInfo(@Param("start") int start, @Param("size") int size);

    List<Helpinfo> findNewHelpInfo(@Param("start") int start, @Param("size") int size);
}